package com.ruibang.glass.purchase.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruibang.glass.purchase.domain.req.PurchaseContractsReq;
import com.ruibang.glass.purchase.entity.PurchaseContracts;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 采购合同信息表 Mapper 接口
 * </p>
 *
 * @author mameng
 * @since 2024-03-27
 */
@Mapper
public interface PurchaseContractsMapper extends BaseMapper<PurchaseContracts> {

    IPage<PurchaseContracts> getPage(Page<PurchaseContracts> page, @Param("purchaseContractsReq") PurchaseContractsReq purchaseContractsReq);

    String getChildNumber(@Param("number") String number);

    String getByProjectNumber(@Param("projectNumber") String projectNumber);
}
